home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1GUPLQ1 (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  2.4 KB  |  71 lines

  1. package com.sun.java.swing.plaf.metal;
  2.  
  3. import com.sun.java.swing.plaf.ColorUIResource;
  4. import com.sun.java.swing.plaf.FontUIResource;
  5.  
  6. public class DefaultMetalTheme extends MetalTheme {
  7.    private final ColorUIResource primary1 = new ColorUIResource(102, 102, 153);
  8.    private final ColorUIResource primary2 = new ColorUIResource(153, 153, 204);
  9.    private final ColorUIResource primary3 = new ColorUIResource(204, 204, 255);
  10.    private final ColorUIResource secondary1 = new ColorUIResource(102, 102, 102);
  11.    private final ColorUIResource secondary2 = new ColorUIResource(153, 153, 153);
  12.    private final ColorUIResource secondary3 = new ColorUIResource(204, 204, 204);
  13.    private final FontUIResource controlFont = new FontUIResource("Dialog", 1, 12);
  14.    private final FontUIResource systemFont = new FontUIResource("Dialog", 0, 12);
  15.    private final FontUIResource windowTitleFont = new FontUIResource("SansSerif", 1, 12);
  16.    private final FontUIResource userFont = new FontUIResource("SansSerif", 0, 12);
  17.    private final FontUIResource smallFont = new FontUIResource("Dialog", 0, 10);
  18.  
  19.    public FontUIResource getControlTextFont() {
  20.       return this.controlFont;
  21.    }
  22.  
  23.    public FontUIResource getMenuTextFont() {
  24.       return this.controlFont;
  25.    }
  26.  
  27.    public String getName() {
  28.       return "Steel";
  29.    }
  30.  
  31.    protected ColorUIResource getPrimary1() {
  32.       return this.primary1;
  33.    }
  34.  
  35.    protected ColorUIResource getPrimary2() {
  36.       return this.primary2;
  37.    }
  38.  
  39.    protected ColorUIResource getPrimary3() {
  40.       return this.primary3;
  41.    }
  42.  
  43.    protected ColorUIResource getSecondary1() {
  44.       return this.secondary1;
  45.    }
  46.  
  47.    protected ColorUIResource getSecondary2() {
  48.       return this.secondary2;
  49.    }
  50.  
  51.    protected ColorUIResource getSecondary3() {
  52.       return this.secondary3;
  53.    }
  54.  
  55.    public FontUIResource getSubTextFont() {
  56.       return this.smallFont;
  57.    }
  58.  
  59.    public FontUIResource getSystemTextFont() {
  60.       return this.systemFont;
  61.    }
  62.  
  63.    public FontUIResource getUserTextFont() {
  64.       return this.userFont;
  65.    }
  66.  
  67.    public FontUIResource getWindowTitleFont() {
  68.       return this.controlFont;
  69.    }
  70. }
  71.